require 'socket'

server = Socket.new :INET,:STREAM
addr = Socket.pack_sockaddr_in 4481,'0.0.0.0'
server.bind(addr)
server.listen(Socket::SOMAXCONN)

# 接受请求
con,_ = server.accept
